import request from '@/utils/request'

// 获取分类树形结构 资产分类列表
export function getCategoryTree(data) {
  return request.get('/system/assetCategories/list' ,{ params: data })
}


// 添加资产分类
export function addAssetCategory(data) {
  return request.post('/system/assetCategories', data)
}

// 删除资产分类
export function deleteAssetCategory(id) {
  return request.delete(`/system/assetCategories/${id}`)
}

// 查找资产分类详情
export function getAssetCategoryDetail(id) {
  return request.get(`/system/assetCategories/${id}`)
}

// 修改资产分类
export function updateAssetCategory(data) {
  return request.put(`/system/assetCategories`,data)
}





